package cn.ejiakanghu.logistics.service.impl;

import cn.ejiakanghu.logistics.service.GoodsRejectedService;
import cn.ejiakanghu.logistics.service.RefusalToSignService;
import org.linlinjava.litemall.db.util.LgBaseInfoStatConstant;
import org.linlinjava.litemall.db.util.LogisticsMissionTypeEnum;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

/**
 * @author ：sujp
 * @date ：Created in 2021/11/10 17:50
 * @description：拒签事件的具体业务
 * @modified By：
 * @version: 1.0
 */
@Service
public class RefusalToSignServiceImpl extends LogisticBusiBaseServiceImpl implements RefusalToSignService {
    @Resource
    private LogisticsBaseServiceAbstractImpl logisticsBaseServiceAbstractImpl;
    /**
     * 拒绝签收
     *
     * @param missionId
     */
    @Override
    public void refuseToSign(Integer missionId) {
        logisticsBaseServiceAbstractImpl.updateLgBaseInfoLgStatAndLgIsOverByMissionId(missionId, LgBaseInfoStatConstant.REFUSE);
    }
}
